import request from '@/utils/request'

// 查询产品传感器列表
export function listProductSensor(query) {
  return request({
    url: '/produce/product-sensor/list',
    method: 'get',
    params: query
  })
}

// 查询产品传感器详细
export function getProductSensor(id) {
  return request({
    url: '/produce/product-sensor/' + id,
    method: 'get'
  })
}

// 新增产品传感器
export function addProductSensor(data) {
  return request({
    url: '/produce/product-sensor',
    method: 'post',
    data: data
  })
}

// 修改产品传感器
export function updateProductSensor(data) {
  return request({
    url: '/produce/product-sensor',
    method: 'put',
    data: data
  })
}

// 删除产品传感器
export function delProductSensor(id) {
  return request({
    url: '/produce/product-sensor/' + id,
    method: 'delete'
  })
}

// 逻辑删除产品传感器
export function removedProductSensor(id) {
  return request({
    url: '/produce/product-sensor/' + id,
    method: 'delete'
  })
}
